var express = require('express');
var router = express.Router();
const child_process = require('child_process');
const config = require('config-lite')(__dirname);
/* maven项目构建 */
router.post('/', function (req, res, next) {
  res.send('respond with a resource');


  //执行shell

  child_process.execFile(config.shell, function (err, stdout, stderr) {
    if (err)
      throw err;
    console.log(stdout)
  })


});

module.exports = router;
